package by.bsuir.csschat.messages;
import java.io.*;
import by.bsuir.csschat.user.User;

public abstract class Message implements Serializable{
    protected String _text;
    protected User _from;
    
    public boolean DontEncrypt(){
        return false;
    }
    
    public User GetSender(){
        return _from;
    }
    
    public String GetText(){
        return _text;
    }
   
    protected Message(String iMsg,User iFrom) {
        _text=iMsg;
        _from=iFrom;
    }
    
}
